﻿using System;
using System.Collections.Generic;
using System.Text;
using ComponentFactory.Krypton.Toolkit;
using Motorbike.APP.Properties;
using System.Windows.Forms;
using System.Drawing;

namespace Motorbike.APP.Forms
{
    public class AbsBaseForm : KryptonForm
    {
        private KryptonManager kryptonManager;
        private System.ComponentModel.IContainer components;

        public AbsBaseForm()
        {
            InitializeComponent();
            this.Icon = global::Motorbike.APP.Properties.Resources.icon;
        }

        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.kryptonManager = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
            this.SuspendLayout();
            // 
            // kryptonManager
            // 
            this.kryptonManager.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2010Silver;
            // 
            // AbsBaseForm
            // 
            this.ClientSize = new System.Drawing.Size(519, 369);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Name = "AbsBaseForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "红兵越野 -- 飘扬大地";
            this.ResumeLayout(false);
            
        }

        protected void ShowMessage(string message)
        {
            KryptonMessageBox.Show(message + "\n ", "提示信息：", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        protected void ShowWarning(string message)
        {
            KryptonMessageBox.Show(message + "\n ", "警告信息：", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        protected void ShowError(string message)
        {
            KryptonMessageBox.Show(message + "\n ", "错误信息：", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        protected DialogResult Confirm(string message)
        {
            return KryptonMessageBox.Show(message + "\n ", "确认信息：", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
    }
}
